/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ebdesk.view.setting;

import com.ebdesk.model.masterdata.Setting;

/**
 *
 * @author Acer
 */
public class SettingInternalFrame extends javax.swing.JInternalFrame {
    private Setting setting;
    /**
     * Creates new form SettingInternalFrame
     */
    public SettingInternalFrame() {
        setting = new Setting();        
        
        initComponents();
        
        this.textConnectionString.setText(setting.getConnectionstring());
        this.textUsername.setText(setting.getUsername());
        this.textPassword.setText(setting.getPassword());
        this.textDriver.setText(setting.getDriver());
        
        this.textRowsPerPageUser.setText(setting.processArrayToString(setting.getRowsPerPageUser()));
        this.textRowsPerPagePrinter.setText(setting.processArrayToString(setting.getRowsPerPagePrinter()));
        
        this.textKodeKota.setText(setting.getKode_kota());
        this.textKodeProvinsi.setText(setting.getKode_provinsi());
        
        this.textNamaPejabat.setText(setting.getNama_pejabat());
        this.textNIPpejabat.setText(setting.getNip_pejabat());
        
        this.textPaging.setText(setting.getPaging() + "");
        this.textTanggalTerbit.setText(setting.getTanggal_terbit());
        this.textTanggalPenetapan.setText(setting.getTanggal_penetapan());
        this.textTempatPembayaran.setText(setting.getTempat_pembayaran());
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        scrollPaneContainer = new javax.swing.JScrollPane();
        panelContainer = new javax.swing.JPanel();
        panelDatabase = new javax.swing.JPanel();
        labelConnection = new javax.swing.JLabel();
        labelUsername = new javax.swing.JLabel();
        labelPassword = new javax.swing.JLabel();
        labelDriver = new javax.swing.JLabel();
        textConnectionString = new javax.swing.JTextField();
        textUsername = new javax.swing.JTextField();
        textPassword = new javax.swing.JPasswordField();
        textDriver = new javax.swing.JTextField();
        panelMasterData = new javax.swing.JPanel();
        labelRowsPerPageUser = new javax.swing.JLabel();
        labelRowsPerPagePrinter = new javax.swing.JLabel();
        textRowsPerPageUser = new javax.swing.JTextField();
        textRowsPerPagePrinter = new javax.swing.JTextField();
        panelReport = new javax.swing.JPanel();
        labelKodeProvinsi = new javax.swing.JLabel();
        textKodeProvinsi = new javax.swing.JTextField();
        labelKodeKota = new javax.swing.JLabel();
        textKodeKota = new javax.swing.JTextField();
        labelNamaPejabat = new javax.swing.JLabel();
        textNamaPejabat = new javax.swing.JTextField();
        labelNIPpejabat = new javax.swing.JLabel();
        textNIPpejabat = new javax.swing.JTextField();
        labelPaging = new javax.swing.JLabel();
        textPaging = new javax.swing.JTextField();
        labelTanggalPenetapan = new javax.swing.JLabel();
        textTanggalPenetapan = new javax.swing.JTextField();
        labelTempatPembayaran = new javax.swing.JLabel();
        textTempatPembayaran = new javax.swing.JTextField();
        labelTanggalTerbit = new javax.swing.JLabel();
        textTanggalTerbit = new javax.swing.JTextField();
        buttonCancel = new javax.swing.JButton();
        buttonSave = new javax.swing.JButton();

        setTitle("Setting");

        panelContainer.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        panelDatabase.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Database", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 102, 102))); // NOI18N

        labelConnection.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelConnection.setText("Connection String :");

        labelUsername.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelUsername.setText("Username :");

        labelPassword.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelPassword.setText("Password :");

        labelDriver.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelDriver.setText("Driver :");

        javax.swing.GroupLayout panelDatabaseLayout = new javax.swing.GroupLayout(panelDatabase);
        panelDatabase.setLayout(panelDatabaseLayout);
        panelDatabaseLayout.setHorizontalGroup(
            panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatabaseLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelConnection)
                    .addComponent(labelUsername)
                    .addComponent(labelPassword)
                    .addComponent(labelDriver))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(textDriver)
                    .addComponent(textPassword)
                    .addComponent(textUsername)
                    .addComponent(textConnectionString, javax.swing.GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panelDatabaseLayout.setVerticalGroup(
            panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatabaseLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelConnection)
                    .addComponent(textConnectionString, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelUsername)
                    .addComponent(textUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(textPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelDriver)
                    .addComponent(textDriver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelMasterData.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Master Data", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 102, 102))); // NOI18N

        labelRowsPerPageUser.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelRowsPerPageUser.setText("Paging for User Management :");

        labelRowsPerPagePrinter.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelRowsPerPagePrinter.setText("Paging for Printer Management :");

        javax.swing.GroupLayout panelMasterDataLayout = new javax.swing.GroupLayout(panelMasterData);
        panelMasterData.setLayout(panelMasterDataLayout);
        panelMasterDataLayout.setHorizontalGroup(
            panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMasterDataLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelRowsPerPagePrinter)
                    .addComponent(labelRowsPerPageUser))
                .addGap(18, 18, 18)
                .addGroup(panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(textRowsPerPageUser, javax.swing.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE)
                    .addComponent(textRowsPerPagePrinter, javax.swing.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelMasterDataLayout.setVerticalGroup(
            panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMasterDataLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelRowsPerPageUser)
                    .addComponent(textRowsPerPageUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelMasterDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelRowsPerPagePrinter)
                    .addComponent(textRowsPerPagePrinter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelReport.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Report", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 102, 102))); // NOI18N

        labelKodeProvinsi.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelKodeProvinsi.setText("Kode Provinsi :");

        labelKodeKota.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelKodeKota.setText("Kode Kota :");

        labelNamaPejabat.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelNamaPejabat.setText("Nama Pejabat :");

        labelNIPpejabat.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelNIPpejabat.setText("NIP Pejabat :");

        labelPaging.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelPaging.setText("Paging :");

        labelTanggalPenetapan.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelTanggalPenetapan.setText("Tanggal Penetapan :");

        labelTempatPembayaran.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelTempatPembayaran.setText("Tempat Pembayaran :");

        labelTanggalTerbit.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        labelTanggalTerbit.setText("Tanggal Terbit : ");

        javax.swing.GroupLayout panelReportLayout = new javax.swing.GroupLayout(panelReport);
        panelReport.setLayout(panelReportLayout);
        panelReportLayout.setHorizontalGroup(
            panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelKodeProvinsi)
                    .addComponent(labelKodeKota)
                    .addComponent(labelNamaPejabat)
                    .addComponent(labelNIPpejabat)
                    .addComponent(labelPaging)
                    .addComponent(labelTanggalPenetapan)
                    .addComponent(labelTempatPembayaran)
                    .addComponent(labelTanggalTerbit))
                .addGap(10, 10, 10)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textPaging, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textTanggalPenetapan, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textTempatPembayaran, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textNamaPejabat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textNIPpejabat, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textKodeProvinsi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textKodeKota, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                    .addComponent(textTanggalTerbit))
                .addContainerGap())
        );
        panelReportLayout.setVerticalGroup(
            panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReportLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelKodeProvinsi)
                    .addComponent(textKodeProvinsi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelKodeKota)
                    .addComponent(textKodeKota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNamaPejabat)
                    .addComponent(textNamaPejabat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNIPpejabat)
                    .addComponent(textNIPpejabat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPaging)
                    .addComponent(textPaging, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTanggalTerbit)
                    .addComponent(textTanggalTerbit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTanggalPenetapan)
                    .addComponent(textTanggalPenetapan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTempatPembayaran)
                    .addComponent(textTempatPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        javax.swing.GroupLayout panelContainerLayout = new javax.swing.GroupLayout(panelContainer);
        panelContainer.setLayout(panelContainerLayout);
        panelContainerLayout.setHorizontalGroup(
            panelContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelContainerLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(panelReport, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelMasterData, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelDatabase, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        panelContainerLayout.setVerticalGroup(
            panelContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelContainerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelDatabase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelMasterData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(4, 4, 4)
                .addComponent(panelReport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        scrollPaneContainer.setViewportView(panelContainer);

        buttonCancel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        buttonCancel.setText("Cancel");
        buttonCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonCancelActionPerformed(evt);
            }
        });

        buttonSave.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        buttonSave.setText("Save");
        buttonSave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonSaveActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(216, 216, 216)
                        .addComponent(buttonCancel)
                        .addGap(29, 29, 29)
                        .addComponent(buttonSave))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(scrollPaneContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 614, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(scrollPaneContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonCancel)
                    .addComponent(buttonSave))
                .addGap(15, 15, 15))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCancelActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_buttonCancelActionPerformed

    private void buttonSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSaveActionPerformed
        setting.setConnectionstring(this.textConnectionString.getText());
        setting.setUsername(this.textUsername.getText());
        setting.setPassword(new String(this.textPassword.getPassword()));
        setting.setDriver(this.textDriver.getText());

        setting.setRowsPerPageUser(setting.processStringToArray(this.textRowsPerPageUser.getText()));
        setting.setRowsPerPagePrinter(setting.processStringToArray(this.textRowsPerPagePrinter.getText()));

        setting.setKode_kota(this.textKodeKota.getText());
        setting.setKode_provinsi(this.textKodeProvinsi.getText());

        setting.setNama_pejabat(this.textNamaPejabat.getText());
        setting.setNip_pejabat(this.textNIPpejabat.getText());

        setting.setPaging(this.textPaging.getText());
        setting.setTanggal_terbit(this.textTanggalTerbit.getText());
        setting.setTanggal_penetapan(this.textTanggalPenetapan.getText());
        setting.setTempat_pembayaran(this.textTempatPembayaran.getText());

        setting.store();
        this.setVisible(false);

    }//GEN-LAST:event_buttonSaveActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonCancel;
    private javax.swing.JButton buttonSave;
    private javax.swing.JLabel labelConnection;
    private javax.swing.JLabel labelDriver;
    private javax.swing.JLabel labelKodeKota;
    private javax.swing.JLabel labelKodeProvinsi;
    private javax.swing.JLabel labelNIPpejabat;
    private javax.swing.JLabel labelNamaPejabat;
    private javax.swing.JLabel labelPaging;
    private javax.swing.JLabel labelPassword;
    private javax.swing.JLabel labelRowsPerPagePrinter;
    private javax.swing.JLabel labelRowsPerPageUser;
    private javax.swing.JLabel labelTanggalPenetapan;
    private javax.swing.JLabel labelTanggalTerbit;
    private javax.swing.JLabel labelTempatPembayaran;
    private javax.swing.JLabel labelUsername;
    private javax.swing.JPanel panelContainer;
    private javax.swing.JPanel panelDatabase;
    private javax.swing.JPanel panelMasterData;
    private javax.swing.JPanel panelReport;
    private javax.swing.JScrollPane scrollPaneContainer;
    private javax.swing.JTextField textConnectionString;
    private javax.swing.JTextField textDriver;
    private javax.swing.JTextField textKodeKota;
    private javax.swing.JTextField textKodeProvinsi;
    private javax.swing.JTextField textNIPpejabat;
    private javax.swing.JTextField textNamaPejabat;
    private javax.swing.JTextField textPaging;
    private javax.swing.JPasswordField textPassword;
    private javax.swing.JTextField textRowsPerPagePrinter;
    private javax.swing.JTextField textRowsPerPageUser;
    private javax.swing.JTextField textTanggalPenetapan;
    private javax.swing.JTextField textTanggalTerbit;
    private javax.swing.JTextField textTempatPembayaran;
    private javax.swing.JTextField textUsername;
    // End of variables declaration//GEN-END:variables
}
